@use "@/assets/styles/mixin";

.add-order-container-white {
  height: 20px;
  background: #f5f7fa;
  border-radius: 0px 0px 0px 0px;
  margin: 20px -20px 0 -20px;
}

.all_container {
  width: 100%;
  height: 100%;
  display: flex;
  // margin: 0 20px 0 20px
}

.order_detail--container {
  width: calc(100% - 408px);
  height: 100%;
  border-radius: 10px 10px 10px 10px;
  position: relative;

}

.operate_right {
  height: 100%;
  width: 388px;
  margin-left: 20px;

  &-content {
    background: #FFFFFF;
    border-radius: 10px 10px 10px 10px;

    .money-header {
      padding: 0 20px 9px;
      border-bottom: 1px solid #ebeef5;
      margin-bottom: 10px;
    }
  }

  .top {
    height: 250px;
  }

  .bottom {
    height: calc(100% - 270px);
    display: flex;
    flex-direction: column;
  }
}

.reform-state {
  @include mixin.flex-inline-flex;
  height: 24px;
  padding: 0 5px;
  min-width: 50px;
  border-radius: 2px;
  font-weight: 400;
  font-size: 12px;
  line-height: 24px;
  margin-left: 20px;
  border-radius: 3px 3px 3px 3px;

  &-info {
    background-color: #dcdfe6;
    color: #606266;
  }

  &-warning {
    background-color: #fff0d9 !important;
    color: #ff9900 !important;
  }

  &-danger {
    background-color: #ffc7c7;
    color: #ff3333;
  }

  &-primary {
    background-color: #d9edff;
    color: #409eff;
  }

  &-success {
    background-color: #e3f9e9;
    color: #14c85c;
  }
}

.order_detail {
  &--container {
    @include mixin.flex-column;
    background: #ffffff;
    height: 100%;
  }

  &--header {
    @include mixin.flex-between;
    padding: 20px;
    border-radius: 10px 10px 0 0;
  }

  &--body {
    background: #ffffff;
    padding: 20px;
    position: relative;
    flex: 1;
    overflow: auto;
  }

  &--title {
    @include mixin.flex-align;
    height: 54px;
    width: 100%;
    background: #ffd8d2;

    .detail_title_item {
      height: 22px;
      width: 75px;
      margin-left: 24px;
      font-size: 14px;
      font-weight: 600;
      color: #3d3d3d;
      line-height: 22px;
      text-align: left;
      font-style: normal;
      text-transform: none;
    }

    .detail_title_right {
      position: relative;
      width: calc(100% - 95px);

      .title_right {
        position: absolute;
        right: 24px;
        /* 设置距离右侧的距离 */
        top: 50%;
        /* 将按钮框体顶部对齐至父容器中心 */
        transform: translateY(-50%);
        /* 在垂直方向上居中 */
        color: #007dff;
      }
    }
  }

  &--divider {
    width: 4px;
    height: 40px;
    background: #dcdfe6;
  }

  &--titlenew {
    @include mixin.flex-center(space-between);
    background: #f6f8fa;
    color: #3d3d3d;
    padding: 5px 0;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 20px;
  }

  &--amount {
    flex-basis: 25%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    /* 每个金额占宽度的三分之一 */
    text-align: center;
    /* 文本水平居中 */
    height: 72px;
  }

  &--dividernew {
    width: 4px;
    height: 40px;
    background: #dcdfe6;
  }

  &--row {
    margin-top: 10px;
    color: #1a1a1a;

    :deep(.el-col) {
      padding: 12px;
      min-height: 80px;
      border-left: 1px solid #dcdfe6;
      border-top: 1px solid #dcdfe6;
      box-sizing: border-box;
      display: flex;
      justify-content: center;
      align-items: center;
      line-height: 200%;
    }
  }

  &--borderbottom {
    border-bottom: 1px solid #dcdfe6;
  }

  &--borderright {
    border-right: 1px solid #dcdfe6;
  }

  &--bgcorlor {
    background: #f6f8fa;
    color: #86909c;
  }

  &--line {
    color: #007dff;
    text-decoration-line: underline;
    cursor: pointer;
    word-break: break-all;
  }
}

.order_table {
  width: 100%;

  &--title {
    @include mixin.flex-align;
    font-size: 14px;
    margin-top: 20px;
    margin-bottom: 10px;
    width: 100%;

    .left {
      width: 60px;
    }

    .sum {
      width: calc(100% - 99px);
      display: flex;
      justify-content: space-between;
      align-items: center;

      span {
        color: #1d2129;
      }
    }
  }

  &--show {
    @include mixin.flex-center(space-between, center);
    font-size: 14px;
    margin-top: 20px;
    margin-bottom: 10px;
  }
}

.order_show {
  color: #007dff;
  font-size: 14px;
  cursor: pointer;

  &--container {
    background: #f6f8fa;
    padding: 20px 20px 0 20px;

    .flex {
      display: flex;
      margin-bottom: 20px;
    }
  }

  &--img {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    margin-right: 16px;
  }

  &--video {
    width: 118px;
    height: 82px;
    border-radius: 4px 4px 4px 4px;
    margin-right: 16px;
    margin-bottom: 20px;
  }
}

.ellipsis {
  padding: 0 10px;
  overflow: hidden;
  /*内容超出后隐藏*/
  text-overflow: ellipsis;
  /*超出内容显示为省略号*/
  white-space: nowrap;
  /*文本不进行换行*/
}

.tooltip {
  position: absolute;
  background-color: black;
  color: white;
  padding: 5px;
  border-radius: 3px;
  white-space: normal;
  /* 允许换行 */
  z-index: 1;
}

.ellipsis:hover .tooltip {
  display: block;
  /* 鼠标悬停时显示 */
}

.order_detail_left {
  display: flex;
  align-items: center;
  height: 32px;
}

.order_body--title {
  display: flex;
  width: 160px;
  height: 24px;

  .order_body--titleleft {
    font-weight: 600;
    font-size: 16px;
    color: #080808;
    line-height: 24px;
    text-align: left;
    font-style: normal;
    text-transform: none;
  }

  .order_body--titleright {
    margin-left: 10px;
    font-size: 16px;
    color: #86909c;
    line-height: 24px;
    text-align: left;
    font-style: normal;
    text-transform: none;
  }
}

.operate_right_dowm {
  padding: 20px 15px 20px 20px;
  position: relative;
  flex: 1;
  overflow: auto;
}

.operate_right_card {
  background: #f6f8fa;
}

.operate_right_cardcontent {
  display: -webkit-box;
  /* 让元素成为 Flexbox */
  -webkit-box-orient: vertical;
  /* 设置子项排列的方向为垂直 */
  -webkit-line-clamp: 2;
  /* 限制显示的行数为 2 行 */
  overflow: hidden;
  /* 隐藏超出内容 */
  text-overflow: ellipsis;
  /* 显示省略号 */
  padding: 12px 20px 0px 20px;
  word-break: break-all;
  font-size: 12px;
  color: #86909C;
}

.operate_right_cardcontentshow {
  display: -webkit-box;
  /* 让元素成为 Flexbox */
  -webkit-box-orient: vertical;
  /* 设置子项排列的方向为垂直 */
  padding: 12px 20px 0px 20px;
  word-break: break-all;
}

.operate_right_cardbutton {
  padding: 12px 20px 0px 20px;
  display: flex;
  flex-wrap: wrap;
}

.operate_right_footbtnchild {
  width: 127px;
  height: 32px;
  background: #ffffff;
  border-radius: 4px 4px 4px 4px;
  border: 1px solid #eaecf0;
  margin-right: 10px;
  margin-bottom: 10px;
  display: flex;
  // justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 12px;
  color: #86909C;
}

.operate_right_state {
  width: 100%;
  padding: 0px 0px 10px 0px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.operate_right_statetext {
  width: 28px;
  height: 24px;
  font-family: PingFang SC;
  font-weight: 400;
  font-size: 14px;
  color: #007dff;
  line-height: 24px;
  text-align: left;
  margin-left: 4px;
}

.operate_right_alltext {
  @include mixin.flex-between;
  align-items: center;
  position: relative;

  .right_text_time {
    width: 120px;
    height: 24px;
    font-weight: 400;
    font-size: 12px;
    color: #c0c4cc;
  }

  .right_text_namenew {
    display: flex;
  }

  .right_text_name {
    width: 120px;
    position: absolute;
    right: 130px;
    top: 0;
    height: 24px;
    font-weight: 400;
    font-size: 12px;
    color: #3d3d3d;
    line-height: 24px;
    text-align: right;
  }
}

.operate_right_righttext {
  @include mixin.flex-align;
}

.operate_right_lefttext {
  height: 24px;
  font-weight: 400;
  font-size: 12px;
  color: #131414;
  line-height: 24px;
  text-align: left;
  font-style: normal;
  text-transform: none;
}

.picUrls_flex_top {
  display: flex;
  flex-direction: row;
  /* 从左到右排列 */
  margin-bottom: 20px;
}

.picUrls_flex_top > div:first-child {
  width: 58px;
  flex-shrink: 0;
  /* 防止文字部分被挤压 */
  color: #86909c;
}

.picUrls_flex_countent {
  display: flex;
  flex-grow: 1;
  /* 占据剩余空间 */
  flex-wrap: wrap;
}

.template-button-container {
  width: 160px;
  display: flex;

  .button {
    width: 77px;
    height: 32px;
    color: #4e5969;
    font-weight: 400;
    font-size: 14px;
    text-align: center;
    line-height: 32px;
    border: 1px solid #e1e6ed;
    cursor: pointer;
  }

  .button:nth-of-type(1) {
    border-radius: 3px 0px 0px 3px;
  }

  .button:nth-of-type(2) {
    border-radius: 0px 3px 3px 0px;
  }

  .active {
    color: #007dff;
    border: 1px solid #007dff;
  }
}

.flex {
  display: flex;
  align-items: center;
}

.money-list-content {
  height: 140px;
  overflow: auto;
}

.money-list {
  padding: 10px 20px;

  .money-text {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #FFA333;
    color: #FFFFFF;
    font-size: 14px;
    text-align: center;
    line-height: 40px;
    margin-right: 12px;
  }

  .refund {
    background: #DCDFE6;
    color: #86909C;
  }

  .money-right {
    width: calc(100% - 40px);

    .num {
      color: #131414;
    }

    .time {
      margin-top: 5px;
      justify-content: space-between;
      font-size: 12px;
    }
  }
}